from django.db import models
from utils.models import CoreModel   


class Student(CoreModel):
        
    student_school = models.CharField(null=True, blank=True, max_length=255, verbose_name='学籍学校', help_text='学籍学校')    
    mother_id_card_number = models.CharField(null=True, blank=True, max_length=255, verbose_name='母亲身份证', help_text='母亲身份证')    
    mother_name = models.CharField(null=True, blank=True, max_length=255, verbose_name='母亲姓名', help_text='母亲姓名')    
    father_id_card_number = models.CharField(null=True, blank=True, max_length=255, verbose_name='父亲身份证', help_text='父亲身份证')    
    father_name = models.CharField(null=True, blank=True, max_length=255, verbose_name='父亲姓名', help_text='父亲姓名')    
    residence_location = models.CharField(null=True, blank=True, max_length=255, verbose_name='户口所在地', help_text='户口所在地')    
    household_address = models.CharField(null=True, blank=True, max_length=255, verbose_name='户籍地址', help_text='户籍地址')    
    current_address = models.CharField(null=True, blank=True, max_length=255, verbose_name='现住址', help_text='现住址')    
    ethnicity = models.CharField(null=True, blank=True, max_length=255, verbose_name='民族', help_text='民族')    
    gender = models.CharField(null=True, blank=True, max_length=255, verbose_name='性别', help_text='性别')    
    contact_phone = models.CharField(null=True, blank=True, max_length=255, verbose_name='联系电话', help_text='联系电话')
    student_number = models.CharField(null=True, blank=True, max_length=255, verbose_name='学籍号', help_text='学籍号')    
    id_card_number = models.CharField(null=True, blank=True, max_length=255, verbose_name='身份证', help_text='身份证')    
    name = models.CharField(null=True, blank=True, max_length=255, verbose_name='姓名', help_text='姓名')    
    class_teacher_phone = models.CharField(null=True, blank=True, max_length=255, verbose_name='班主任手机号', help_text='班主任手机号')    
    class_teacher = models.CharField(null=True, blank=True, max_length=255, verbose_name='班主任', help_text='班主任')    
    class_number = models.DecimalField(null=True, blank=True, max_digits = 13, decimal_places = 0, verbose_name='班级', help_text='班级')
    gerder = models.CharField(null=True, blank=True, max_length=255, verbose_name='年级', help_text='年级')

    class Meta:
        db_table = 'generator_student'
        verbose_name = '学生信息管理'
        verbose_name_plural = verbose_name
        ordering = ('gerder','class_number')
    